package com.twu.biblioteca;

import static java.lang.String.format;

/**
 * Created with IntelliJ IDEA.
 * User: Thoughtworker
 * Date: 8/22/13
 * Time: 5:37 PM
 * To change this template use File | Settings | File Templates.
 */
public class Movie {
    private String title;
    private String director;
    private String year;
    private String rating;

    public Movie(String title, String year, String director, String rating){
        this.title = title;
        this.director = director;
        this.year = year;
        this.rating = rating;
    }

    public String getTitle() {
        return title;
    }


    public String displayInfo() {
        return(format("%-20s %-5s %-15s %-3s", title, year, director, rating));
    }
}
